package top.eleven.sixpence.generaterollbacksql.common.util;

import top.eleven.sixpence.generaterollbacksql.common.CommonConstant;

/**
 * 字符串工具类
 *
 * @author Eleven
 */
public class StringUtils extends org.apache.commons.lang3.StringUtils {

    /**
     * 字符串首字母大写
     *
     * @param param
     * @return
     */
    public static String convertFirstUpperCase(String param){
        if(param != null && !CommonConstant.EMPTY_STRING.equals(param.trim())){
            int len = param.length();
            StringBuilder sb = new StringBuilder(len);
            char c = param.charAt(0);
            sb.append(Character.toUpperCase(c));
            sb.append(param.substring(1));
            return sb.toString();
        }else {
            return CommonConstant.EMPTY_STRING;
        }
    }

}
